const KoaRouter = require('@koa/router')

const loginRouter = new KoaRouter({ prefix: '/login' })
const loginController = require('../controller/login.controller')
const {
	verifyLogin,
	verifyAuthorization
} = require('../middleware/login.middleware')

// 用户登陆
loginRouter.post('/', verifyLogin, loginController.sign)

loginRouter.get('/test', verifyAuthorization, loginController.test)

module.exports = loginRouter
